package cn.zjutleo.village_server.controller;

import cn.zjutleo.village_server.entity.ViewDispatchRepairInfo;
import cn.zjutleo.village_server.service.ViewDispatchRepairInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @Author: 张坤
 * @DateTime: 2021/8/31 19:51
 * @Description: 该类用于 TODO
 */
@Api(tags="报修单所有信息查询")
@RestController()
public class ViewDispatchRepairInfoController {
    @Autowired
    ViewDispatchRepairInfoService viewDispatchRepairInfoService;

    @ApiOperation("按照报修单号查询")
    @PostMapping("/api/selectViewDispatchRepairInfo")
    ViewDispatchRepairInfo selectViewDispatchRepairInfo(@RequestBody HashMap<String , String > map){
        String ra_id=map.get("ra_id");
        return viewDispatchRepairInfoService.selectViewDispatchRepairInfo(Integer.valueOf(ra_id));
    }
}
